package com.lianxi

import scala.util.Random

/**
  * Created by adengdeng on 2017/8/6 
  */
object Lx1 {

  def main(args: Array[String]): Unit = {

    val n = 5
    val a = for (i <- 1 to n) yield Random.nextInt(n)

    println(a.mkString(" "))
  }
}
